Report XInput button motion events until all buttons are released.
authorThomas Jaeger <ThJaeger@gmail.com>
Tue, 29 Sep 2009 05:56:59 +0000 (01:56 -0400)
committerAlexander Larsson <alexl@redhat.com>
Tue, 29 Sep 2009 12:44:21 +0000 (14:44 +0200)
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649

gdk/x11/gdkinput-xfree.c

index 695175f61ce13c83b69204905ecea959364ee429..4d590ea9cf53ef16e94cb09eaff31ef3c7b0ba17 100644 (file)
@@ -284,7 +284,7 @@ _gdk_input_other_event (GdkEvent *event,
 
   if (event->type == GDK_BUTTON_PRESS)
     iw->button_down_window = window;
-  if (event->type == GDK_BUTTON_RELEASE)
+  if (event->type == GDK_BUTTON_RELEASE && !gdkdev->button_count)
     iw->button_down_window = NULL;
 
   if (event->type == GDK_PROXIMITY_OUT &&